package com.tz.liveplayermodule.downloadUtil;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Property;

/**
 * Created by 陈丰尧 on 2017/2/2.
 * 下载信息
 */

@Entity
public class DownloadInfo {
    public static final long TOTAL_ERROR = -1;//获取进度失败

    @Id
    private Long id;
    @Property
    private String url;
    @Property
    private long total;
    @Property
    private long progress;
    @Property
    private String fileName;
    @Property
    private String fileId;
    @Property
    private String savePath;
    @Property
    private int duration;
    @Property
    private String completeType;//0:下载，1：下载中，2：下载完成
    @Property
    private String classId;
    @Property
    private String className;

    private boolean choose;

    public boolean isChoose() {
        return choose;
    }

    public void setChoose(boolean choose) {
        this.choose = choose;
    }

    @Generated(hash = 1677254957)
    public DownloadInfo(Long id, String url, long total, long progress, String fileName,
            String fileId, String savePath, int duration, String completeType, String classId,
            String className, boolean choose) {
        this.id = id;
        this.url = url;
        this.total = total;
        this.progress = progress;
        this.fileName = fileName;
        this.fileId = fileId;
        this.savePath = savePath;
        this.duration = duration;
        this.completeType = completeType;
        this.classId = classId;
        this.className = className;
        this.choose = choose;
    }

    @Generated(hash = 327086747)
    public DownloadInfo() {
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUrl() {
        return this.url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public long getTotal() {
        return this.total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public long getProgress() {
        return this.progress;
    }

    public void setProgress(long progress) {
        this.progress = progress;
    }

    public String getFileName() {
        return this.fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getSavePath() {
        return this.savePath;
    }

    public void setSavePath(String savePath) {
        this.savePath = savePath;
    }

    public int getDuration() {
        return this.duration;
    }

    public void setDuration(int duration) {
        this.duration = duration;
    }



    public boolean getChoose() {
        return this.choose;
    }

    public String getFileId() {
        return this.fileId;
    }

    public void setFileId(String fileId) {
        this.fileId = fileId;
    }

    public String getClassId() {
        return this.classId;
    }

    public void setClassId(String classId) {
        this.classId = classId;
    }

    public String getClassName() {
        return this.className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getCompleteType() {
        return this.completeType;
    }

    public void setCompleteType(String completeType) {
        this.completeType = completeType;
    }


}
